Skip to content

Conversation

srmukher
Copy link
Contributor

Lazy load very large datasets


const textFieldStyles: Partial<ITextFieldStyles> = { root: { maxWidth: 300 } };

const DeclarativeChartBasicExample: React.FC<IDeclarativeChartProps> = () => {
const savedOptionStr = getSelection(SCHEMA_KEY, SCHEMA_KEY_DEFAULT);
const savedOption = parseInt(savedOptionStr, 10) - 1; // To handle 0 based index
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why remove -1?

const [selectedPlotTypes, setSelectedPlotTypes] = React.useState<PlotType[]>(getSelection("PlotType_filter", 'All').split(',') as PlotType[]);
const [selectedDataTypes, setSelectedDataTypes] = React.useState<DataType[]>(getSelection("DataType_filter", 'All').split(',') as DataType[]);
const [selectedSchema, setSelectedSchema] = React.useState<any>(isLazyFile ? {} : (savedDataItem?.schema || {}));

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why changing all the existing logic for lazy loading

@@ -1,5 +1,5 @@
const startExampleTestIndex = 0;
export const totalChartExamplesCount = 912;
export const totalChartExamplesCount = 950;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exclude very large files from tests to ensure the workflow remains reliable

@srmukher srmukher closed this Aug 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants